function L(n, e) {
  return (n << e) | (n >>> (32 - e));
}
function u(n, e) {
  let f, o, c, l, a;
  return (
    (c = n & 2147483648),
    (l = e & 2147483648),
    (f = n & 1073741824),
    (o = e & 1073741824),
    (a = (n & 1073741823) + (e & 1073741823)),
    f & o
      ? a ^ 2147483648 ^ c ^ l
      : f | o
        ? a & 1073741824
          ? a ^ 3221225472 ^ c ^ l
          : a ^ 1073741824 ^ c ^ l
        : a ^ c ^ l
  );
}
function V(n, e, f) {
  return (n & e) | (~n & f);
}
function D(n, e, f) {
  return (n & f) | (e & ~f);
}
function k(n, e, f) {
  return n ^ e ^ f;
}
function v(n, e, f) {
  return e ^ (n | ~f);
}
function b(n, e, f, o, c, l, a) {
  return (n = u(n, u(u(V(e, f, o), c), a))), u(L(n, l), e);
}
function i(n, e, f, o, c, l, a) {
  return (n = u(n, u(u(D(e, f, o), c), a))), u(L(n, l), e);
}
function S(n, e, f, o, c, l, a) {
  return (n = u(n, u(u(k(e, f, o), c), a))), u(L(n, l), e);
}
function C(n, e, f, o, c, l, a) {
  return (n = u(n, u(u(v(e, f, o), c), a))), u(L(n, l), e);
}
function E(n) {
  let e,
    f = n.length,
    o = f + 8,
    l = ((o - (o % 64)) / 64 + 1) * 16,
    a = Array(l - 1),
    r = 0,
    x = 0;
  for (; x < f; )
    (e = (x - (x % 4)) / 4),
      (r = (x % 4) * 8),
      (a[e] = a[e] | (n.charCodeAt(x) << r)),
      x++;
  return (
    (e = (x - (x % 4)) / 4),
    (r = (x % 4) * 8),
    (a[e] = a[e] | (128 << r)),
    (a[l - 2] = f << 3),
    (a[l - 1] = f >>> 29),
    a
  );
}
function I(n) {
  let e = '',
    f = '',
    o,
    c;
  for (c = 0; c <= 3; c++)
    (o = (n >>> (c * 8)) & 255),
      (f = '0' + o.toString(16)),
      (e = e + f.substring(f.length - 2, f.length));
  return e;
}
function M(n) {
  n = n.replace(
    /\x0d\x0a/g,
    `
`,
  );
  let e = '';
  for (let f = 0; f < n.length; f++) {
    let o = n.charCodeAt(f);
    o < 128
      ? (e += String.fromCharCode(o))
      : o > 127 && o < 2048
        ? ((e += String.fromCharCode((o >> 6) | 192)),
          (e += String.fromCharCode((o & 63) | 128)))
        : ((e += String.fromCharCode((o >> 12) | 224)),
          (e += String.fromCharCode(((o >> 6) & 63) | 128)),
          (e += String.fromCharCode((o & 63) | 128)));
  }
  return e;
}
function R(n) {
  let e = [],
    f,
    o,
    c,
    l,
    a,
    r,
    x,
    t,
    d,
    m = 7,
    h = 12,
    g = 17,
    T = 22,
    s = 5,
    p = 9,
    W = 14,
    A = 20,
    y = 4,
    H = 11,
    w = 16,
    O = 23,
    B = 6,
    F = 10,
    N = 15,
    G = 21;
  for (
    n = M(n),
      e = E(n),
      r = 1732584193,
      x = 4023233417,
      t = 2562383102,
      d = 271733878,
      f = 0;
    f < e.length;
    f += 16
  )
    (o = r),
      (c = x),
      (l = t),
      (a = d),
      (r = b(r, x, t, d, e[f + 0], m, 3614090360)),
      (d = b(d, r, x, t, e[f + 1], h, 3905402710)),
      (t = b(t, d, r, x, e[f + 2], g, 606105819)),
      (x = b(x, t, d, r, e[f + 3], T, 3250441966)),
      (r = b(r, x, t, d, e[f + 4], m, 4118548399)),
      (d = b(d, r, x, t, e[f + 5], h, 1200080426)),
      (t = b(t, d, r, x, e[f + 6], g, 2821735955)),
      (x = b(x, t, d, r, e[f + 7], T, 4249261313)),
      (r = b(r, x, t, d, e[f + 8], m, 1770035416)),
      (d = b(d, r, x, t, e[f + 9], h, 2336552879)),
      (t = b(t, d, r, x, e[f + 10], g, 4294925233)),
      (x = b(x, t, d, r, e[f + 11], T, 2304563134)),
      (r = b(r, x, t, d, e[f + 12], m, 1804603682)),
      (d = b(d, r, x, t, e[f + 13], h, 4254626195)),
      (t = b(t, d, r, x, e[f + 14], g, 2792965006)),
      (x = b(x, t, d, r, e[f + 15], T, 1236535329)),
      (r = i(r, x, t, d, e[f + 1], s, 4129170786)),
      (d = i(d, r, x, t, e[f + 6], p, 3225465664)),
      (t = i(t, d, r, x, e[f + 11], W, 643717713)),
      (x = i(x, t, d, r, e[f + 0], A, 3921069994)),
      (r = i(r, x, t, d, e[f + 5], s, 3593408605)),
      (d = i(d, r, x, t, e[f + 10], p, 38016083)),
      (t = i(t, d, r, x, e[f + 15], W, 3634488961)),
      (x = i(x, t, d, r, e[f + 4], A, 3889429448)),
      (r = i(r, x, t, d, e[f + 9], s, 568446438)),
      (d = i(d, r, x, t, e[f + 14], p, 3275163606)),
      (t = i(t, d, r, x, e[f + 3], W, 4107603335)),
      (x = i(x, t, d, r, e[f + 8], A, 1163531501)),
      (r = i(r, x, t, d, e[f + 13], s, 2850285829)),
      (d = i(d, r, x, t, e[f + 2], p, 4243563512)),
      (t = i(t, d, r, x, e[f + 7], W, 1735328473)),
      (x = i(x, t, d, r, e[f + 12], A, 2368359562)),
      (r = S(r, x, t, d, e[f + 5], y, 4294588738)),
      (d = S(d, r, x, t, e[f + 8], H, 2272392833)),
      (t = S(t, d, r, x, e[f + 11], w, 1839030562)),
      (x = S(x, t, d, r, e[f + 14], O, 4259657740)),
      (r = S(r, x, t, d, e[f + 1], y, 2763975236)),
      (d = S(d, r, x, t, e[f + 4], H, 1272893353)),
      (t = S(t, d, r, x, e[f + 7], w, 4139469664)),
      (x = S(x, t, d, r, e[f + 10], O, 3200236656)),
      (r = S(r, x, t, d, e[f + 13], y, 681279174)),
      (d = S(d, r, x, t, e[f + 0], H, 3936430074)),
      (t = S(t, d, r, x, e[f + 3], w, 3572445317)),
      (x = S(x, t, d, r, e[f + 6], O, 76029189)),
      (r = S(r, x, t, d, e[f + 9], y, 3654602809)),
      (d = S(d, r, x, t, e[f + 12], H, 3873151461)),
      (t = S(t, d, r, x, e[f + 15], w, 530742520)),
      (x = S(x, t, d, r, e[f + 2], O, 3299628645)),
      (r = C(r, x, t, d, e[f + 0], B, 4096336452)),
      (d = C(d, r, x, t, e[f + 7], F, 1126891415)),
      (t = C(t, d, r, x, e[f + 14], N, 2878612391)),
      (x = C(x, t, d, r, e[f + 5], G, 4237533241)),
      (r = C(r, x, t, d, e[f + 12], B, 1700485571)),
      (d = C(d, r, x, t, e[f + 3], F, 2399980690)),
      (t = C(t, d, r, x, e[f + 10], N, 4293915773)),
      (x = C(x, t, d, r, e[f + 1], G, 2240044497)),
      (r = C(r, x, t, d, e[f + 8], B, 1873313359)),
      (d = C(d, r, x, t, e[f + 15], F, 4264355552)),
      (t = C(t, d, r, x, e[f + 6], N, 2734768916)),
      (x = C(x, t, d, r, e[f + 13], G, 1309151649)),
      (r = C(r, x, t, d, e[f + 4], B, 4149444226)),
      (d = C(d, r, x, t, e[f + 11], F, 3174756917)),
      (t = C(t, d, r, x, e[f + 2], N, 718787259)),
      (x = C(x, t, d, r, e[f + 9], G, 3951481745)),
      (r = u(r, o)),
      (x = u(x, c)),
      (t = u(t, l)),
      (d = u(d, a));
  return (I(r) + I(x) + I(t) + I(d)).toLowerCase();
}
export { R as default };
